<template>
  <div class="view-container">
    <el-form ref="upData" :model="upData" label-width="80px">
      <el-form-item>
        <el-row>
          <el-col :span="24" style="text-align: center">
            <h1 v-text="upData.infoTitle"></h1>
          </el-col>

          <el-row class="fonstsiez">
            <el-col :span="24" style="text-align: center">
              用途:<small v-text="upData.infoUse"></small> | 分类:<small v-text="upData.infoType"></small> |文号:<small v-text="upData.infoCode"></small>| 发表于:<small v-text="upData.created"></small>
            </el-col>

          </el-row>
        </el-row>
      </el-form-item>


        <el-col :span="8">

          <el-form-item>
            <el-radio-group v-model="upData.shareType">
              <el-radio :label="3">全部</el-radio>
              <el-radio :label="2">科室</el-radio>
              <el-radio :label="1">个人</el-radio>
              <el-radio :label="0">私人</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>

      <el-form-item>
        <Tinymce v-model="upData.infoContent"/>
      </el-form-item>



    </el-form>
  </div>
</template>

<script>
  import huizongsel from "@/api/huizongChakan/huizongsel";
  import Tinymce from "@/components/Tinymce";
  export default {
    name: "xiangqing",
    components: {
      Tinymce,
    },
    data() {
      return {
        // id:  this.$router.id,

        id:this.$router.id,
        upData:{},
      }
    },
    created() {
      this.updaLs()
    },
    methods: {
      updaLs(){
        huizongsel.huizongUpAlls(this.id).then(res=>{
          this.upData = res
          console.log(res)
        })
      },





    }
  }
</script>

<style scoped lang="scss">
  .fonstsiez{

  }
</style>
